cmake_minimum_required(VERSION 3.10)
project(UEStudioEcosystem)

set(CMAKE_CXX_STANDARD 17)

# 查找wxWidgets
find_package(wxWidgets REQUIRED COMPONENTS core base)
include(${wxWidgets_USE_FILE})

# 包含路径
include_directories(
    ../Tools/UniversalNodeManager/include
    include
    /d/vc/wxWidgets/include
    /d/vc/UEStudio/include
)

# 源文件
set(SOURCES
    src/tools/uestudio_layer.cpp
    src/rtos/rtos_layer.cpp
    src/infra/protocol_layer.cpp
    src/toolchains/toolchain_layer.cpp
    src/workflows/project_workflows.cpp
    src/gui/ecosystem_browser.cpp
)

# 创建生态系统库
add_library(uestudio_ecosystem STATIC ${SOURCES})
target_link_libraries(uestudio_ecosystem ${wxWidgets_LIBRARIES})

# 演示程序
add_executable(ecosystem_demo examples/uestudio_ecosystem_demo.cpp)
target_link_libraries(ecosystem_demo uestudio_ecosystem ${wxWidgets_LIBRARIES})
